#输入1-10
# for i in range(1,11):
#     print(i)
# #输入2 4 6 8 10
# for i in range(2,12,2):
#     print(i)
#从倒叙1-10
# for i in range(10,0,-1):
#     print(i)
# theSum = 0
# for i in range(1,101):
#     theSum += i
# print(f'theSum={theSum}')
#计算任意一个数的平均值
theSum = 0
count = 0
while True:
    num = input('请输入一个整数（输入分号即为结束）:')
    if num == ';':
        break
    theSum += float(num)
    count +=1
print(f'平均值={theSum / count}')